package com.manage.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * YWD
 * 2025/9/18
 */
@Data
@TableName(value = "t_role")
public class RoleEntity implements Serializable {

    /**
     *角色ID
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "角色ID")
    private Long id;
    /**
     *角色名称
     */
    @Schema(description = "角色名称")
    private String name;
    /**
     *角色描述
     */
    @Schema(description = "角色描述")
    private String description;
    /**
     *状态(0=禁用,1=启用)
     */
    @Schema(description = "状态(0=禁用,1=启用)")
    private Integer status;
    /**
     *创建时间
     */
    @Schema(description = "创建时间")
    private String createTime;
    /**
     *更新时间
     */
    @Schema(description = "更新时间")
    private String updateTime;
    /**
     *是否删除(0=否,1=是)
     */
    @TableLogic
    @Schema(description = "是否删除(0=否,1=是)")
    private Integer isDeleted;

}
